export function request(params, title = '加载中...') {
	return new Promise((resolve, reject) => {
		uni.showLoading({
			title: title
		})
		uni.request({
				...params
			})
			.then(([err, resp]) => {
				uni.hideLoading();
				resolve(resp)
			})
			.catch(error => {
				uni.hideLoading();
				reject(error)
			})
	})
}